package com.lbx.dao4;

import com.lbx.dao2.UserService;
import com.lbx.dao2.UserServiceImpl;
import org.springframework.stereotype.Service;

/**
 * @author 吕兵星
 * @date 2020/10/21 17:20
 */
public class Client {
    public static void main(String[] args) {
        UserService userService = new UserServiceImpl();
        ProxyInvocationHandler invocationHandler = new ProxyInvocationHandler();
        invocationHandler.setTarget(userService);
        UserService service = (UserService) invocationHandler.getProxy();
        service.add();
        service.delete();
        service.update();
        service.select();
    }
}
